package com.gitee.shoes.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.gitee.shoes.enumeration.PlatformEnum;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author LYH
 * @since 2020-12-09
 */
@Data
@Accessors(chain = true)
@TableName(value = "pms_product_base")
public class ProductBase implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 平台
     */
    private PlatformEnum platform;

    /**
     * 平台id
     */
    private String platformId;

    /**
     * 特点id
     */
    private String styleId;

    /**
     * 主货号
     */
    private String article;

    /**
     * 发售价
     */
    @TableField("authPrice")
    private String authPrice;

    /**
     * 标题
     */
    private String title;

    /**
     * 品牌名
     */
    @TableField("brandName")
    private String brandName;

    /**
     * 发售时间
     */
    @TableField("sellDate")
    private String sellDate;

    /**
     * 主图
     */
    @TableField("logoUrl")
    private String logoUrl;

    /**
     * 上次同步最新售价时间
     */
    @TableField("lastUpdateBuyNowTime")
    private LocalDateTime lastUpdateBuyNowTime;

    /**
     * 上次同步销售记录时间
     */
    @TableField("lastUpdateSoldTime")
    private LocalDateTime lastUpdateSoldTime;

    /**
     * 忽略标记
     */
    @TableField("ignoreMark")
    private Boolean ignoreMark;

    /**
     * 忽略时间
     */
    @TableField(value = "ignoreMarkTime",updateStrategy = FieldStrategy.IGNORED)
    private LocalDateTime ignoreMarkTime;

}
